using UnityEngine;
using System.Collections;

public class DisplayInformations : MonoBehaviour {

    private int score, bestScore;
    public TextMesh scoreText, bestScoreText;

    public void Start()
    {
		int meter = RecordManager.getLastMeterRecord();
		int coins = RecordManager.getLastScoreRecord();
		
        score = RecordManager.getLastMeterRecord() + RecordManager.getLastScoreRecord();
        bestScore = RecordManager.getMeterRecord() + RecordManager.getScoreRecord();
		
		scoreText.text = coins + " + " + meter + " = " + score;
		
        bestScoreText.text = bestScore.ToString();
    }
}
